<br>
<table border="0" cellspacing="0" cellpadding="4" width="100%">
	<tr style="background-color:#536A97;color:#FFFFFF;">
		<th>Contact</th>
		<th>Contact Type</th>
		<th>Follow-Up Info</th>
	</tr>
	
<% if @follow_ups.empty? %>

	</table>
   	<div id="message-black">
		No results
	</div>


<% else %>

<% @follow_ups.group_by(&:contact_id).each do |c,f| %>
	<% @contact = Contact.find(c) %>
	<% if @contact %>
	<tr class="<%= cycle("even","odd") %>">
		<td>
			<%= link_to "#{@contact.stamp}", :controller => 'contacts', :action => 'follow_up', :id => c  %>
		</td>
		<td>
			<%= @contact.contact_type.name rescue nil %>
		</td>
		<td>
			<table border="0" cellspacing="0" cellpadding="3" width="100%">
				<tr>
					<th>Date</th>
					<th>Follow-Up Type</th>
					<th>Notes</th>
				</tr>
				
			<% f.each do |n| %>
				
				<tr>
					<td><%= n.created_at.strftime('%m/%d/%Y') rescue nil %></td>
					<td><%= n.follow_up_type.name rescue nil %></td>
					<td><%= n.notes rescue nil %></td>
				</tr>
			<% end %>
			</table>
		</td>
	</tr>
	<% end %>
	
<% end %>

</table>

<% end %>
